package com.itzz.spring_zhoneHeng.service;

import com.itzz.spring_zhoneHeng.base.RestResponse;
import com.itzz.spring_zhoneHeng.pojo.Book;
import com.itzz.spring_zhoneHeng.pojo.BookShelf;
import org.springframework.transaction.annotation.Transactional;

public interface BookShelfService {

    //根据书名,类型,作者,及书籍vip查询书籍
    RestResponse queryAllBookShelf(BookShelf bookShelf, Integer pageNum, Integer pageSize,Integer userid);

    //添加书架的书籍
    RestResponse addBook(BookShelf bookShelf,Integer id, Integer intestate,Integer uid);

    //删除书架的书籍
    @Transactional
    RestResponse deleteBook(Integer id);

    //判断我前台点击的书是否存在于我的书架中
    @Transactional
    RestResponse queryBookShelf(Integer userId, Integer bookId);

    @Transactional
    RestResponse queryBookId(Integer bookid);

    //根据书架id查询书的详情
    RestResponse queryBookShelfById(Integer bookshelfid);

    //根据bookshelfId 查询表 b_bs表的 bookid
    //queryBookIdByBsid
    RestResponse queryBookIdByBsid(Integer bsid);
}
